package com.jk.admin.service;

import com.jk.admin.dao.SellsDao;
import com.jk.admin.entity.ProductSeckill;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SellsService {
    @Autowired
    private SellsDao sellsDao;

    public List<ProductSeckill> getSells() {
        return sellsDao.getSells();
    }

    public void delSells(Integer id) {
        sellsDao.delSells(id);
    }

    public void addSells(ProductSeckill pro) {
        sellsDao.addSells(pro);
    }
}
